<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputLabel value="#{bundle.ViewPartofspeechTitle}"></h:outputLabel>
        </ui:define>
        <ui:define name="body">
<!--            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>-->
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.ViewPartofspeechLabel_id}"/>
                    <h:outputLabel value="#{partofspeechController.selected.id}" title="#{bundle.ViewPartofspeechTitle_id}"/>
                    <h:outputLabel value="#{bundle.ViewPartofspeechLabel_name}"/>
                    <h:outputLabel value="#{partofspeechController.selected.name}" title="#{bundle.ViewPartofspeechTitle_name}"/>
                    <h:outputLabel value="#{bundle.ViewPartofspeechLabel_chinese}"/>
                    <h:outputLabel value="#{partofspeechController.selected.chinese}" title="#{bundle.ViewPartofspeechTitle_chinese}"/>
                    <h:outputLabel value="#{bundle.ViewPartofspeechLabel_memo}"/>
                    <h:outputLabel value="#{partofspeechController.selected.memo}" title="#{bundle.ViewPartofspeechTitle_memo}"/>
                </h:panelGrid>
                <br />
                <h:commandLink id="link1"  action="#{partofspeechController.destroy}" value="#{bundle.ViewPartofspeechDestroyLink}"/>
                <br />
                <br />
                <h:link id="link2"  outcome="Edit" value="#{bundle.ViewPartofspeechEditLink}"/>
                <br />
                <h:commandLink id="link3"  action="#{partofspeechController.prepareCreate()}" value="#{bundle.ViewPartofspeechCreateLink}" />
                <br />
                <h:commandLink action="#{partofspeechController.prepareList}" value="#{bundle.ViewPartofspeechShowAllLink}"/>
                <br />
                <br />
                <h:link id="link4"  outcome="/index" value="#{bundle.ViewPartofspeechIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
